package com.onec.service.api.dto.request.customer;

import com.onec.service.api.dto.request.BaseRequest;
import com.onec.service.api.utils.group.AgentParamGroup;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * 获取机构信息：
 */
public class AgentInfoReq extends BaseRequest {

    @NotNull(message = "机构编号不可为空", groups = {AgentParamGroup.class, AgentParamGroup.class})
    @Length(min = 5, max = 12, message = "机构编号介于5-12之间", groups = {AgentParamGroup.class})
    public String agentCode;

    //@NotNull(message = "业务编号不可空", groups = {AgentParamGroup.class, AgentParamGroup.class})
    @Length(min = 5, max = 12, message = "业务编号介于5-12之间", groups = {AgentParamGroup.class})
    public String businessNo;

    public String getAgentCode() {
        return agentCode;
    }

    public void setAgentCode(String agentCode) {
        this.agentCode = agentCode;
    }

    public String getBusinessNo() {
        return businessNo;
    }

    public void setBusinessNo(String businessNo) {
        this.businessNo = businessNo;
    }
}
